<?php
class AdviserValidator extends CRequiredValidator {
	
	protected function validateAttribute($object,$attribute)
	{
		$user = Yii::app()->user->getState('dbuser'); 
		if (Constants::findUserType($user) == Constants::ADVISER_USER_TYPE){
			parent::validateAttribute($object,$attribute);
		}
	}
	
}
?>
